
<script>

export default {
  async created () {
    // const res = await get('/weapp/demo')
    // console.log('123', res)
    // wx.request({
    //     url:config.host+'/weapp/demo',
    //     success:function(res){
    //         console.log(res)
    //     }
    // })
    console.log('小程序启动了')
  },
  mounted() {
    wx.showShareMenu({
        withShareTicket: true
    })
  }
  
}
</script>

<style lang='scss'>
    .text-footer{
        font-size: 12px;
        text-align: center;
        padding: 5px 0;
        margin: 5px 0;
        background-color: #ececec;
        color: #999
    }
    .btn{
        width: 60%;
        text-align: center;
        font-size: 16px;
        background: #ea5149;
        color: #fff;
        margin-top: 20rpx;
        height: 40px;
        line-height: 40px;
    }
    .btn:active{
        background: #fa5149;
    }
    .text-primary{
        color: #ea5149;
    }
    .text-secondary{
        font-size: 12px;
        color: #333;
    }
    .mini-title{
        font-size: 14px;
        text-align: left;
        padding: 5px 0;
        padding-left: 5px;
        background-color: #ececec;
        color: #999
    }
    .btn-share{
        text-align: center;
        font-size: 14px;
        background: #ea5149;
        color: #fff;
        margin-top: 20rpx;
        height: 30px;
        line-height: 30px;
        margin-bottom: 15px;
    }

</style>
